#ifndef _VIAEDITOR_COLORBUTTON_H_
#define _VIAEDITOR_COLORBUTTON_H_

#include <QtGui/QPushButton>
#include <QtGui/QColor>

class ColorButton : public QPushButton
{
	Q_OBJECT
	private slots:
		void changeColor();
	private:
		QColor currentColor;
		QWidget *parent;
	public:
		ColorButton(const QColor& color,QWidget *parent = 0);
	
		void setButtonColor(const QColor& color);
		const QColor& color() const;
};

#endif
